<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Collection extends Model
{
    protected $fillable = [
    	'goods_id',
    	'user_id',
    ];

    public function user()
    {
    	return $this->belongsTo(User::class);
    }

    public function goods()
    {
    	return $this->belongsTo(Goods::class, 'goods_id');
    }
}
